package de.jmda.mproc.swingui;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

import de.jmda.gui.swing.mvc.ModelBase;
import de.jmda.util.fileset.FileSet;
import de.jmda.util.fileset.FileSetJavaFilesOnly;
import de.jmda.util.gui.swing.JPanelFavourites;
import de.jmda.util.gui.swing.JPanelFavouritesModel;

@XmlRootElement
@XmlAccessorType(XmlAccessType.FIELD)
public class JPanelFileSetJavaSourceFilesModel
    extends ModelBase
{
	// Make sure to use types original namespace!
	@XmlElement(namespace=FileSet.XML_NAMESPACE)
	private FileSetJavaFilesOnly fileSetJavaFilesOnly;

	// Make sure to use types original namespace!
	@XmlElement(namespace=JPanelFavourites.XML_NAMESPACE)
	private JPanelFavouritesModel jPanelFavouritesModel;

	/**
	 * required by JAXB
	 */
  private JPanelFileSetJavaSourceFilesModel()
	{
  	super();
//	  this(new FileSetJavaFilesOnly(), new JPanelFavouritesModel());
	}

	public JPanelFileSetJavaSourceFilesModel(
      FileSetJavaFilesOnly fileSetJavaFilesOnly,
      JPanelFavouritesModel jPanelFavouritesModel)
  {
		this();
	  this.fileSetJavaFilesOnly = fileSetJavaFilesOnly;
	  this.jPanelFavouritesModel = jPanelFavouritesModel;
  }

	public FileSetJavaFilesOnly getFileSetJavaFilesOnly()
  {
  	return fileSetJavaFilesOnly;
  }

	public JPanelFavouritesModel getjPanelFavouritesModel()
  {
  	return jPanelFavouritesModel;
  }
}